package es.xpt.ysf.commons.person;

import es.xpt.ysf.dao.Connection;
import es.xpt.ysf.dao.DAOErrors;
import es.xpt.ysf.dao.DAOException;
import es.xpt.ysf.dao.DbDAOFactory;

import java.security.Principal;
import java.util.ResourceBundle;

/**
 * Mantenimento de paises, provincias y localidades
 * @author joseignacio.garces@xplayat.es
 * @version YSF 1.0
 * @since 
 */

public class PersonDAOFactory extends DbDAOFactory {
	
  private static DAOErrors errors = new DAOErrors(ResourceBundle.getBundle("es.xpt.ysf.commons.person.PersonDAOErrors"));
	  
  public PersonDAOFactory(Principal principal) throws DAOException {
    super( principal );
  }
  
  public PersonDAOFactory(Connection con, Principal principal) throws DAOException { // NO_UCD
	    super( con, principal );
	  }
  
  public PersonDAO getPersonDAO() {
	return new PersonDAO(con, principal, errors);
  }

}


